<span style=""><?php
	include_once("DataProvider.php");
	$tg=time();
	$tgout=900;
	$tgnew=$tg - $tgout;
	$REMOTE_ADDR = $_SERVER['REMOTE_ADDR'];
	$PHP_SELF = $_SERVER['PHP_SELF'];
	$sql="insert into useronline(tgtmp,ip,local) values('$tg','$REMOTE_ADDR','$PHP_SELF')";
	$query=DataProvider::ExecuteQuery($sql);
	$sql="delete from useronline where tgtmp < $tgnew";
	$query=DataProvider::ExecuteQuery($sql);
	$sql="SELECT DISTINCT ip FROM useronline WHERE local='$PHP_SELF'";
	$query=DataProvider::ExecuteQuery($sql);
	$user = mysql_num_rows($query);
	
	$listnum = str_split(str_pad($user,3,0,0));
	foreach($listnum as $value)
	{

	
	echo "<img src='images/$value.png' width='15px' style='margin-left:2px;'/>"; 
	 }


?></span>
